package com.ruoyi.coupons.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @TableName member_coupon
 */
@TableName(value ="member_coupon")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MemberCoupon implements Serializable {
    /**
     * 用户优惠券id
     */
    @TableId(type = IdType.AUTO)
    private Integer mcId;

    /**
     * 会员id
     */
    private Integer memberId;

    /**
     * 优惠券id
     */
    private Integer couponId;

    /**
     * 优惠券个数
     */
    private Integer number;

    /**
     * 优惠券使用状态
     */
    private Integer couponStatus;

    /**
     * 优惠券信息
     */
    @TableField(exist = false)
    private Coupon coupon;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}